package cas_spike_client;

import java.sql.Time;
import java.util.*;
import java.io.*;

public class Score implements Serializable {
	
	private Time time;
	private String username;
	private int wpmRate;
	
	public Score(String usernameVal, int wpmRateVal) {
		time = new Time(new Date().getTime());
		username = usernameVal;
		wpmRate = wpmRateVal;
	}
	
	public Score(Time timeVal, String usernameVal, int wpmRateVal) {
		time = timeVal;
		username = usernameVal;
		wpmRate = wpmRateVal;
	}
	
	public Time getTime() {	
		return time;
	}
	
	public void setTime(Time timeVal) {
		time = timeVal;
	}
	
	public String getUsername() {	
		return username;
	}
	
	public void setUsername(String usernameVal) {
		username = usernameVal;
	}
	
	public int getWpmRate() {	
		return wpmRate;
	}
	
	public void setWpmRate(int wpmRateVal) {
		wpmRate = wpmRateVal;
	}
}